package JHfstools;

import java.awt.EventQueue;

import javax.swing.JDialog;
import java.awt.Color;
import java.awt.FlowLayout;
import javax.swing.JTextPane;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Dimension;

public class dircopywarn extends JDialog {

	/**
	 * Launch the application.
	 */
	static boolean dircopywarn = false;
	public static boolean main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					dircopywarn dialog = new dircopywarn();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
		return dircopywarn;
	}

	/**
	 * Create the dialog.
	 */
	public dircopywarn() {
		setSize(new Dimension(448, 276));
		setPreferredSize(new Dimension(450, 225));
		setModal(true);
		getContentPane().setBackground(new Color(245, 255, 250));
		getContentPane().setLayout(null);
		
		JTextPane txtpnCautionDirectoryCopies = new JTextPane();
		txtpnCautionDirectoryCopies.setForeground(new Color(255, 0, 0));
		txtpnCautionDirectoryCopies.setText("CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION Directory copies are always done in Binary mode.  You are copying files between unlike operating systems, no ASCII/EBCDIC conversion will be performed.  If you are sure only Binary files will be copied click the ok button to proceed, otherwise click the cancel button to abort the copy copy individual files instead.\r\nCAUTION CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION");
		txtpnCautionDirectoryCopies.setBounds(10, 0, 422, 115);
		getContentPane().add(txtpnCautionDirectoryCopies);
		
		JButton hftdirwarnok = new JButton("");
		hftdirwarnok.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dircopywarn = true;
				dispose();
			}
		});
		hftdirwarnok.setIcon(new ImageIcon(dircopywarn.class.getResource("images/dlgok.png")));
		hftdirwarnok.setBounds(10, 126, 41, 41);
		getContentPane().add(hftdirwarnok);
		
		JButton hftdirwarncan = new JButton("");
		hftdirwarncan.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dircopywarn=false;
				dispose();
			}
		});
		hftdirwarncan.setIcon(new ImageIcon(dircopywarn.class.getResource("images/dlgcan.png")));
		hftdirwarncan.setBounds(391, 126, 41, 41);
		getContentPane().add(hftdirwarncan);
		setTitle("HFS Tools copy ");
		setBounds(100, 100, 448, 222);

	}
	public boolean getrc(){
		return dircopywarn;
	}
}
